/**
 * 
 */
package tests;

import static org.junit.Assert.*;

import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.Logger;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import reit.main.ClerkDetails;
import reit.main.Management;
import reit.main.RentalRequests;
import reit.main.RunnableClerk;

/**
 * @author nexus
 *
 */
public class RunnableClerkTest extends XMLParseBase{

	protected List<Thread> fRunnableClerks;
	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
		super.setUp();
		this.fLogger = Logger.getLogger(RunnableClerkTest.class);
		fRunnableClerks = new ArrayList<Thread>();
		for (int i=0;i<this.fClerkDetails.size();i++){
			//this.fRunnableClerks.add(new Thread(new RunnableClerk(this.fClerkDetails.get(i),this.fRentalRequests,this.fManagement),"clerk_"+i));
		}
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
		super.tearDown();
	}

	/**
	 * Test method for {@link reit.main.RunnableClerk#RunnableClerk(reit.main.ClerkDetails)}.
	 */
	/*
	@Test
	public void testRunnableClerkClerkDetails() {
		assertTrue(this.fRunnableClerks.size()>0);
		assertTrue(this.fRunnableClerks.get(0)!= null);
		fLogger.info("testing "+this.fRunnableClerks.size()+" runnable clerks");
	}

	/**
	 * Test method for {@link reit.main.RunnableClerk#RunnableClerk(reit.main.ClerkDetails, java.util.List, java.util.concurrent.atomic.AtomicInteger)}.
	 */

	/**
	 * Test method for {@link reit.main.RunnableClerk#run()}.
	 *//*
	@Test
	public void testRun() {
	/*	fLogger.info("testing "+this.fRentalRequests.size()+" rental Requests");
		for (int j=0;j<1000;j++){
			for (int i=0;i<this.fRunnableClerks.size();i++){
				this.fRunnableClerks.get(i).run();
			}
		}*/
	//}

}
